using System;
using System.Collections.Generic;
using System.Text;

namespace DbfToAccess
{
    public class Data1721A1 : IComparable
    {
        public Data1721A1() {}

        private string _BranchCode = string.Empty;

        public string BranchCode
        {
            get { return _BranchCode; }
            set { _BranchCode = value; }
        }

        private string _KdForm = string.Empty;

        public string KdForm
        {
            get { return _KdForm; }
            set { _KdForm = value; }
        }
        private Int32 _NoUrut = 0;

        public Int32 NoUrut
        {
            get { return _NoUrut; }
            set { _NoUrut = value; }
        }
        private string _NpwpPerusahaan = string.Empty;

        public string NpwpPerusahaan
        {
            get { return _NpwpPerusahaan; }
            set { _NpwpPerusahaan = value; }
        }
        private int _TahunPajak = 0;

        public int TahunPajak
        {
            get { return _TahunPajak; }
            set { _TahunPajak = value; }
        }
        private int _KdPembentulanKe = 0;

        public int KdPembentulanKe
        {
            get { return _KdPembentulanKe; }
            set { _KdPembentulanKe = value; }
        }
        private string _NpwpPegawai;

        public string NpwpPegawai
        {
            get { return _NpwpPegawai; }
            set { _NpwpPegawai = value; }
        }
        private string _NamaPegawai = string.Empty;

        public string NamaPegawai
        {
            get { return _NamaPegawai; }
            set { _NamaPegawai = value; }
        }
        private string _AlamatPegawai = string.Empty;

        public string AlamatPegawai
        {
            get { return _AlamatPegawai; }
            set { _AlamatPegawai = value; }
        }
        private string _JabatanPegawai = string.Empty;

        public string JabatanPegawai
        {
            get { return _JabatanPegawai; }
            set { _JabatanPegawai = value; }
        }
        private int _JenisKelamin = 0;

        public int JenisKelamin
        {
            get { return _JenisKelamin; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _JenisKelamin = value; 
                }
            }
        }
        private Int16 _FlagAsing = 0;

        public Int16 FlagAsing
        {
            get { return _FlagAsing; }
            set 
            {
                if ((value >= 0) && (value <= 1))
                {
                    _FlagAsing = value; 
                }
            }
        }
        private int _StatusKawin = 0;

        public int StatusKawin
        {
            get { return _StatusKawin; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _StatusKawin = value; 
                }
            }
        }
        private int _StatusKeluarga = 0;

        public int StatusKeluarga
        {
            get { return _StatusKeluarga; }
            set 
            {
                if ((value >= 1) && (value <= 3))
                {
                    _StatusKeluarga = value; 
                }
            }
        }
        private int _JumlahTanggungan = 0;

        public int JumlahTanggungan
        {
            get { return _JumlahTanggungan; }
            set { _JumlahTanggungan = value; }
        }
        private string _Masa1 = string.Empty;

        public string Masa1
        {
            get { return _Masa1; }
            set { _Masa1 = value; }
        }
        private string _Masa2 = string.Empty;

        public string Masa2
        {
            get { return _Masa2; }
            set { _Masa2 = value; }
        }
        private double _Angka1 = 0;

        public double Angka1
        {
            get { return _Angka1; }
            set { _Angka1 = value; }
        }
        private double _Angka2 = 0;

        public double Angka2
        {
            get { return _Angka2; }
            set { _Angka2 = value; }
        }
        private double _Angka3 = 0;

        public double Angka3
        {
            get { return _Angka3; }
            set { _Angka3 = value; }
        }
        private double _Angka4 = 0;

        public double Angka4
        {
            get { return _Angka4; }
            set { _Angka4 = value; }
        }
        private double _Angka5 = 0;

        public double Angka5
        {
            get { return _Angka5; }
            set { _Angka5 = value; }
        }
        private double _Angka6 = 0;

        public double Angka6
        {
            get { return _Angka6; }
            set { _Angka6 = value; }
        }
        private double _Angka7 = 0;

        public double Angka7
        {
            get { return _Angka7; }
            set { _Angka7 = value; }
        }
        private double _Angka8 = 0;

        public double Angka8
        {
            get { return _Angka8; }
            set { _Angka8 = value; }
        }
        private double _Angka9 = 0;

        public double Angka9
        {
            get { return _Angka9; }
            set { _Angka9 = value; }
        }
        private double _Angka10 = 0;

        public double Angka10
        {
            get { return _Angka10; }
            set { _Angka10 = value; }
        }
        private double _Angka11 = 0;

        public double Angka11
        {
            get { return _Angka11; }
            set { _Angka11 = value; }
        }
        private double _Angka12 = 0;

        public double Angka12
        {
            get { return _Angka12; }
            set { _Angka12 = value; }
        }
        private double _Angka13 = 0;

        public double Angka13
        {
            get { return _Angka13; }
            set { _Angka13 = value; }
        }
        private double _Angka14 = 0;

        public double Angka14
        {
            get { return _Angka14; }
            set { _Angka14 = value; }
        }
        private double _Angka15 = 0;

        public double Angka15
        {
            get { return _Angka15; }
            set { _Angka15 = value; }
        }
        private double _Angka16 = 0;

        public double Angka16
        {
            get { return _Angka16; }
            set { _Angka16 = value; }
        }
        private double _Angka17 = 0;

        public double Angka17
        {
            get { return _Angka17; }
            set { _Angka17 = value; }
        }
        private double _Angka18 = 0;

        public double Angka18
        {
            get { return _Angka18; }
            set { _Angka18 = value; }
        }
        private double _Angka19 = 0;

        public double Angka19
        {
            get { return _Angka19; }
            set { _Angka19 = value; }
        }
        private double _Angka20 = 0;

        public double Angka20
        {
            get { return _Angka20; }
            set { _Angka20 = value; }
        }
        private double _Angka21 = 0;

        public double Angka21
        {
            get { return _Angka21; }
            set { _Angka21 = value; }
        }
        private double _Angka22 = 0;

        public double Angka22
        {
            get { return _Angka22; }
            set { _Angka22 = value; }
        }
        private double _Angka22A = 0;

        public double Angka22A
        {
            get { return _Angka22A; }
            set { _Angka22A = value; }
        }
        private double _Angka22B = 0;

        public double Angka22B
        {
            get { return _Angka22B; }
            set { _Angka22B = value; }
        }
        private double _Angka23 = 0;

        public double Angka23
        {
            get { return _Angka23; }
            set { _Angka23 = value; }
        }
        private double _Angka24 = 0;

        public double Angka24
        {
            get { return _Angka24; }
            set { _Angka24 = value; }
        }
        private Int16 _FlagStatus = 0;

        public Int16 FlagStatus
        {
            get { return _FlagStatus; }
            set 
            {
                if ((value >= 0) && (value <= 5))
                {
                    _FlagStatus = value; 
                }
            }
        }
        private Int16 _Flag23 = 0;

        public Int16 Flag23
        {
            get { return _Flag23; }
            set 
            {
                if ((value >= 0) && (value <= 2))
                {
                    _Flag23 = value; 
                }
            }
        }
        private Int16 _Flag24 = 0;

        public Int16 Flag24
        {
            get { return _Flag24; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _Flag24 = value;
                }
            }
        }
        private string _MasaTahungPotong = string.Empty;

        public string MasaTahungPotong
        {
            get { return _MasaTahungPotong; }
            set { _MasaTahungPotong = value; }
        }
        private string _MasaTahungHitung = string.Empty;

        public string MasaTahungHitung
        {
            get { return _MasaTahungHitung; }
            set { _MasaTahungHitung = value; }
        }
        private double _UmrBulan = 0;

        public double UmrBulan
        {
            get { return _UmrBulan; }
            set { _UmrBulan = value; }
        }
        private double _UmrTahun = 0;

        public double UmrTahun
        {
            get { return _UmrTahun; }
            set { _UmrTahun = value; }
        }
        private Int16 _FlagTunjanganPPH = 0;

        public Int16 FlagTunjanganPPH
        {
            get { return _FlagTunjanganPPH; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _FlagTunjanganPPH = value;
                }
            }
        }
        private Int16 _FlagPTKP = 0;

        public Int16 FlagPTKP
        {
            get { return _FlagPTKP; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _FlagPTKP = value;
                }
            }
        }
        private Int16 _FlagPegawai = 0;

        public Int16 FlagPegawai
        {
            get { return _FlagPegawai; }
            set 
            {
                if ((value >= 1) && (value <= 2))
                {
                    _FlagPegawai = value; 
                }
            }
        }

        public int CompareTo(object obj)
        {
            if (obj == null) return 1;

            Data1721A1 data = obj as Data1721A1;
            if (data != null)
                return this.NoUrut.CompareTo(data.NoUrut);
            else
                throw new ArgumentException("Object is not a Data1721A1");
        }

    }
}
